<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<br><br>
<div class="searchresult"><i>${result}</i></div>
<br><br>
<s:form action="DeleteManufacturers">
<table border="1" cellpadding="0" cellspacing="0"> 
	<tr height="30">
		<th width="25" align="center"><input type="checkbox" id="IdAllCheck" onclick="tongleall()"/></th>
		<th width="35" align="center">ID</th>
		<th width="160" align="center"> Name</th>
		<th width="250" align="center"> Address</th>
		<th width="110" align="center"> Phone</th>
		<th width="250" align="center"> Description</th>
		<th width="100" align="center"> Controls</th>
	</tr>
	<s:iterator value="ManuResult" status="status"> 
		<tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
			<td width="25" align="center"><input type="checkbox" name="IdCheck" value="${id}" onclick="synccheck()"/></td>
			<td width="35" align="left"> <s:property value="id"/></td>
			<td width="160" align="left"> <s:property value="name" /></td>
			<td width="250" align="left"><s:property value="addr"/></td>
			<td width="110" align="left"> <s:property value="telephone"/></td> 
			<td width="250" align="left"> <s:property value="des" /> </td>
			<td width="100" align="center">
				
				<s:url var="viewinfo" value="returnproduct">
					<s:param name="SelectedManuId" value="%{id}"></s:param>
					<s:param name="returntosearch" value="true"></s:param>
				</s:url>
				<s:a href="%{viewinfo}">View</s:a>&nbsp;&nbsp;&nbsp;&nbsp;
				
				<s:url var="editmanu" value="EditManufacturer">
					<s:param name="Selectedid" value="%{id}"></s:param>
					<s:param name="returntosearch" value="true"></s:param>
				</s:url>
				<s:a href="%{editmanu}" >Edit</s:a>
				
			</td>
		</tr>
	</s:iterator>
</table>
<table class="underbutton">
	<tr>
	<td><input type="button" value="Delete" class="deletebutton"/></td>
	</tr>
</table>
</s:form>
